package com.assets.room.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.io.Serializable;

@Entity(tableName = "t_asset_receives_receivesdetail")
public class ReceivesDetail implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 领用明细id
     */
    @ColumnInfo(name = "receives_detail_id")
    @PrimaryKey(autoGenerate = true)
    private Long receivesDetailId;

    /**
     * 领用单号
     */
    @ColumnInfo(name = "receives_id")
    private String receivesId;

    /**
     * 资产id
     */
    @ColumnInfo(name = "asset_id")
    private String assetId;

    /**
     * 是否归还（0：申请，1：是，2：否 ）
     */
    @ColumnInfo(name = "isreturn")
    private String isreturn;

    @ColumnInfo(name = "is_flag")
    private String isFlag;


    public Long getReceivesDetailId() {
        return receivesDetailId;
    }

    public void setReceivesDetailId(Long receivesDetailId) {
        this.receivesDetailId = receivesDetailId;
    }

    public String getReceivesId() {
        return receivesId;
    }

    public void setReceivesId(String receivesId) {
        this.receivesId = receivesId;
    }

    public String getAssetId() {
        return assetId;
    }

    public void setAssetId(String assetId) {
        this.assetId = assetId;
    }

    public String getIsreturn() {
        return isreturn;
    }

    public void setIsreturn(String isreturn) {
        this.isreturn = isreturn;
    }

    public String getIsFlag() {
        return isFlag;
    }

    public void setIsFlag(String isFlag) {
        this.isFlag = isFlag;
    }

    @Ignore
    public ReceivesDetail() {
    }

    public ReceivesDetail(Long receivesDetailId, String receivesId, String assetId, String isreturn, String isFlag) {
        this.receivesDetailId = receivesDetailId;
        this.receivesId = receivesId;
        this.assetId = assetId;
        this.isreturn = isreturn;
        this.isFlag = isFlag;
    }

    @Override
    public String toString() {
        return "Receivesdetail{" +
                "receivesDetailId=" + receivesDetailId +
                ", receivesId=" + receivesId +
                ", assetId=" + assetId +
                ", isreturn=" + isreturn +
                "}";
    }
}